# 列表的真正意义的复制

# 1，假复制 用 = 进行赋值


# 2.正确的方法1: 复制
names = ["Mike","Marry","Jan","Jack"]
names_源文件 = names
names.append("zhichao")
print("names = ",names)
print("names_源文件 = ",names_源文件)

# 3.正确的方法2：切片[:]
names = ["Mike","Marry","Jan","Jack"]
names_源文件 = names[:]
names.append("zhichao")
print("names = ",names)
print("names_源文件 = ",names_源文件)